Needle & Knot: Binder Boilerplate Tied Up

نویسندگان

  • Steven Keuchel
  • Stephanie Weirich
  • Tom Schrijvers
چکیده

In order to lighten the burden of programming language mechanization many approaches have been developed that tackle the substantial boilerplate which arises from variable binders. Unfortunately, the existing approaches are limited in scope. They typically do not support complex binding forms (such as multi-binders) that arise in more advanced languages, or they do not tackle the boilerplate due to mentioning variables and binders in relations. As a consequence, the human mechanizer is still unnecessarily burdened with binder boilerplate and discouraged from taking on richer languages. This paper presents Knot, a new approach that substantially extends the support for binder boilerplate. Knot is a highly expressive language for natural and concise specification of syntax with binders. Its metatheory constructively guarantees for well-formed specifications the coverage of a considerable amount of binder boilerplate, including that for well-scoping of terms and context lookups. Knot also comes with a code generator, Needle, that specializes the generic boilerplate for convenient embedding in Coq and provides a tactic library for automatically discharging proof obligations that frequently come up in proofs of weakening and substitution lemmas of type-systems. Our evaluation shows, that Needle & Knot significantly reduce the size of language mechanizations (by 40% in our case study). Moreover, as far as we know, Knot enables the most concise mechanization of the POPLmark Challenge (1a + 2a) and is two-thirds the size of the next smallest. Finally, Knot allows us to mechanize for instance dependentlytyped languages, which is notoriously challenging because of dependent contexts and mutually-recursive sorts with variables.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Towards a Better Laparoscopic Knot: Using Knot Quality Scores to Evaluate Three Laparoscopic Knot-Tying Techniques

OBJECTIVE In the past, knot-tying techniques have been evaluated and compared, but there has been a scarcity of objective scoring systems in these comparison studies. Using an objective scoring system, we aimed to compare 3 types of knots: intracorporeal flat-square knots, intracorporeal slip-square knots, and extracorporeal square-knots for their Knot Quality Scores (KQS) and their rates of sl...

متن کامل

Novel Technique to Overcome the Nonavailability of a Long Needle 9-0 Polypropylene Suture for Sutured Scleral Fixation of the Posterior Chamber Intraocular Lens Using a Single Fisherman's Knot

PURPOSE To describe a method to overcome the nonavailability of a long needle 9-0 polypropylene suture for sutured scleral fixation of the posterior chamber intraocular lens (PC-IOL) using a single fisherman's knot (SFK). METHODS First, a 10-0 polypropylene suture was passed from the sclera to the ciliary sulcus using a long needle. A 9-0 suture was tied to the unpassed portion of the 10-0 su...

متن کامل

Performance Comparison of a Pretied Suture Knot With Three Conventional Arthroscopic Knots.

PURPOSE To compare the knot characteristics of a pretied suture knot with 3 of the most commonly used arthroscopic knots tied with various high-strength sutures. METHODS Three commonly used arthroscopic knots (surgeon's knot, Seoul Medical Center, and Duncan loop) tied with no. 2 high-strength sutures were compared with a pretied knot secured with either 1, 2, or 3 reversed half hitches (RHAP...

متن کامل

Gordian Unknots

Numerical simulations indicate that there exist conformations of the unknot, tied on a finite piece of rope, entangled in such a manner, that they cannot be disentangled to the torus conformation without cutting the rope. The simplest example of such a gordian unknot is presented. Knots are closed, self-avoiding curves in the 3-dimensional space. The shape and size of a knot, i.e. its conformat...

متن کامل

Arthroscopic knots: determining the optimal balance of loop security and knot security.

PURPOSE The purpose of this study was to determine the optimal knot configuration that maximized both knot and loop security when tied with 2 different types of nonabsorbable, braided suture. TYPE OF STUDY In vitro biomechanical study. METHODS Six commonly used arthroscopic sliding knots (Duncan loop, Nicky's knot, Tennessee slider, Roeder knot, SMC knot, Weston knot) with and without a ser...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2016